package org.feng.enums;

/**
 * 错误返回值代码
 *
 * @author feng
 */
public enum Response {

    /**
     * 返回code  返回值
     */
    CODE_INVALID(10000, "验证码失效！"),
    CODE_VALIDATION_INVALID(10001, "验证码输入错误，请重新输入！"),
    USERNAME_PASSWORD_INVALID(10002, "用户名或密码输入错误，请重新输入！"),
    USER_NOT_LOGIN(10003, "用户登录过期或未登录，请重新登录！"),

    NO_SETTING_UPLOAD_MANAGE(20000,"请配置文件上传管理器");

    /**
     * 错误码
     */
    private final Integer code;
    /**
     * 错误信息
     */
    private final String msg;

    Response(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
